<!DOCTYPE HTML>
<html lang='zh-CN'>
    <head>
        <meta charset='utf-8'>
        <title>Hack</title>
    </head>
<body>
    <script type="text/javascript" src="base64.min.js" ></script>
    <script type="text/javascript">
      var hash = window.location.hash;
      if(hash){
        hash = hash.substring(1);
        var url = Base64.fromBase64(hash);

        //wx授权链接还原
        if(url.startsWith('[A]')){
          url = url.replace('[A]','https://open.weixin.qq.com/connect/oauth2/authorize?');
          url += '&response_type=code&scope=snsapi_base#wechat_redirect';
        }
        window.location.replace(url);
      }
    </script>
</body>

</html>